package com.filmbooks.presenter;

import com.filmbooks.contract.detail.WebViewLoadConaract;

/**
 * Created by heshuxiang on 2018/3/9.
 * 描述：
 * 公司：盟将威
 * 作者：heshuxiang
 * 日期：2018/3/9.
 * 工程：FilmBooks
 * 包：com.filmbooks.presenter
 */

public class WebViewLoadPresenter extends WebViewLoadConaract.WebViewLoadPresenter {
    @Override
    public WebViewLoadConaract.IWebViewLoadModel getModel() {
        return null;
    }

    public static WebViewLoadPresenter newInstance() {
        return new WebViewLoadPresenter();
    }

    @Override
    public void onStart() {

    }

    @Override
    public void loadUrl(String url) {
        if (mIView == null)
            return;

        try {
            mIView.showUrlDetail(url);
        } catch (Exception e) {
            mIView.showNetworkError();
            e.printStackTrace();
        }
    }
}
